<template>
	<h2>OA单据服务器地址</h2>
	<el-form-item :label="model[globalparam.oaDocumentServerUrl.paramCode].paramName">
		<el-input v-model="model[globalparam.oaDocumentServerUrl.paramCode].paramValue"></el-input>
	</el-form-item>
</template>

<script>

import globalparam from "@/constant/model/globalparam";

export default {
	name: 'oaDocumentServerSetting',
	computed: {
		globalparam() {
			return globalparam
		}
	},
	components: {},
	props: {
		model: {type: Object, default: {}}
	},
	data() {
		return {
			params: [
				globalparam.oaDocumentServerUrl,
			],
		}
	},
	created() {
		this.params.forEach(item => {
			if (!this.model[item.paramCode]) {
				this.model[item.paramCode] = item;
			}else{
				this.model[item.paramCode].paramName = item.paramName;
			}
		});
	},
	mounted() {
	},
	methods: {}
}
</script>
